<?php
//
//	file: includes/advlog/class_advlog_init.php
//	begin: 30/04/2007
//	$Author: christopher $
//	$Revision: 31 $
//	$Date: 2008-07-21 03:08:30 +0000 (Mon, 21 Jul 2008) $
//	license: http://opensource.org/licenses/gpl-license.php GNU General Public License (GPL)
//
//	description: loader for advlog

if (!defined('IN_PHPBB'))
{
	die("Hacking attempt");
}

// version plug
class advlog_version
{
	function read(&$data)
	{
		$data[] = array('app_name' => 'Advanced Logging', 'app_desc' => '', 'app_marker' => 'mod_advanced_logging', 'app_author' => 'impleri', 'app_author_url' => 'http://impleri.net/', 'app_server' => 'mods.impleri.net', 'app_file' => '/download/versions.dta', 'app_protocol' => 'native', 'app_page' => 'http://mods.impleri.net/download.php');
	}
}

// functions
include($config->url('includes/advlog/advlog_functions'));

// lang files
if ( defined('IN_ADMIN') )
{
	$log_lang_files = array('lang_extend_advlog');
	$user->use_lang_file($log_lang_files);
	$user->use_lang('logcp');
	unset($log_lang_files);
}

// set our plugs
$config->set_plug_ins('mod_advanced_logging', array(
	'posting' => array(
		'layer' => 'includes/advlog/plug_advlog_modcp',
		'object' =>'class_advlog_modcp',
	),
	'modcp' => array(
		'layer' => 'includes/advlog/plug_advlog_modcp',
		'object' =>'class_advlog_modcp',
	),
	'profile' => array(
		'layer' => 'includes/advlog/plug_advlog_profile',
		'object' => 'advlog_profile',
	),
	'class_stats_online' => array(
		'layer' => 'includes/advlog/plug_advlog_stats',
		'object' => 'advlog_stats',
	),
	'class_versions' => array(
		'object' => 'advlog_version',
	),
	'class_advnot_parent' => array(
		'layer' => 'includes/advlog/plug_advlog_notify',
		'object' => 'advlog_notify',
	),
));

?>